﻿using FluentNHibernate.Mapping;
using IapService.Entity;

namespace IapService.Mappings
{
    public class SampleFillerMap : ClassMap<SampleFiller>
    {
        public SampleFillerMap()
        {
            Id(x => x.Id);
            Map(x => x.SampleId);
            Map(x => x.Layer);
            References(x => x.Filler, "fillerId").Cascade.Delete().NotFound.Ignore();
        }
    }
}